﻿using Abp.Domain.Entities.Auditing;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.ProductionPlan
{
    /// <summary>
    /// 装配人员
    /// </summary>
    public class JobWorker : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 任务Id
        /// </summary>
        public Guid TaskId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int Sort { get; set; }
        [CanBeNull]
        /// <summary>
        /// 装配班组
        /// </summary>
        public long OrganizationUnitId { get; set; }
        /// <summary>
        /// 装配班组描述
        /// </summary>
        public string OrganizationUnitDesc { get; set; }
        [CanBeNull]
        /// <summary>
        ///装配人员
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 装配人员描述
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 绩效工时
        /// </summary>
        public decimal PerformanceHour { get; set; }

        /// <summary>
        /// 报工工时
        /// </summary>
        public decimal ReportHour { get; set; }

        [CanBeNull]
        /// <summary>
        /// 报工时间
        /// </summary>
        public DateTime ?ReportTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 撤销原因
        /// </summary>
        public string BackReason { get; set; }


    }
}
